<header class="post-preview-header clearfix">

    {{#link-to "posts" tagName="button" class="btn btn-default btn-back"}}Back{{/link-to}}
    <h2 class="page-title">预览</h2>
    <button type="button" class="{{if model.featured 'featured' 'unfeatured'}}" title="Feature this post" {{action "toggleFeatured"}}>
        <span class="sr-only">收藏</span>
    </button>
    <small class="post-published-by">
        <span class="status">
            {{#if isPublished}}
                <a title="{{model.title}}" href="{{model.absoluteUrl}}">已发布</a>
            {{else}}
                草稿
            {{/if}}
        </span>
        <span class="normal">作者:</span>
        <span class="author">{{#if model.author.name}}{{model.author.name}}{{else}}{{model.author.email}}{{/if}}</span>
    </small>
    <section class="post-controls">
        {{#link-to "editor.edit" model class="btn btn-default post-edit"}}修改{{/link-to}}
    </section>
</header>

{{#view "content-preview-content-view" tagName="section"}}
    <div class="wrapper">
        <h1>{{model.title}}</h1>
        {{gh-format-html model.html}}
    </div>
{{/view}}
